package com.allwees.bs.module.mms.wf;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.allwees.core.common.constant.EStatus;
import com.allwees.core.wf.Action;
import lombok.Getter;

/**
 * 供应商入驻流程相关动作
 *
 * @author yangylsky
 * @since 2019-12-03
 *
 */
@Getter
public enum ESupplierApplyAction implements Action, IEnum<String> {
	//MERCHANT ACTION
	SUPPLIER_COMMIT(EStatus.WAIT_AUDIT),

	SUPPLIER_CANCEL,
	//end of MERCHANT ACTION

	//PLATFORM ACTION
	PLATFORM_FIRST_REJECTED(EStatus.MMS_FIRST_AUDIT_REJECTED),
	PLATFORM_FIRST_APPROVED(EStatus.MMS_FIRST_AUDIT_APPROVED),

	PLATFORM_FINAL_REJECTED(EStatus.MMS_FINAL_AUDIT_REJECTED),
	PLATFORM_FINAL_APPROVED(EStatus.NORMAL)
	//end of PLATFORM ACTION
	;

	private EStatus afterActionStatus;

	ESupplierApplyAction() {
		this(null);
	}

	ESupplierApplyAction(EStatus afterActionStatus) {
		this.afterActionStatus = afterActionStatus;
	}

	@Override
	public EStatus afterActionStatus() {
		return afterActionStatus;
	}

	@Override
	public String getValue() {
		return name();
	}


}
